/*
 * HomeHotTitLeHolder.java
 * business
 *
 * Created by SunDing on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.ImageView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;
import com.yidiandao.business.utils.ImageLoader;

/** 首页-热销商品-ViewHolder */
public class HomeHotTitleHolder extends ViewHolder {

    private ImageView ivBg;

    @Override
    protected void initView(View rootView) {
        ivBg = (ImageView) rootView.findViewById(R.id.iv_bg);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_home_hot_title;
    }

    public void refreshUI(int resId) {
        ImageLoader.loadLocalImage(mContext, ivBg, resId);
    }
}
